package com.jemframework.domain;

import java.io.Serializable;

import javax.persistence.EntityManager;

public interface EntityHome<E extends Entity, ID extends Serializable> {

  E createEntity(EntityManager em);

  E createEntity(EntityManager em, ID id);

  void insertEntity(EntityManager em, E album);

  void updateEntity(EntityManager em, E album);

  void removeEntity(EntityManager em, E album);

  E findEntity(EntityManager em, ID aImageId);
}
